package com.bfxy.rabbit.producer.autoconfigure;

import com.bfxy.rabbit.producer.entity.RabbitProducer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 自动装配 SPI
 * @author linxin
 */
//@Configuration
//@ComponentScan({"com.bfxy.rabbit.producer.*"})
public class RabbitProducerAutoConfiguration {

    //@Bean
    public RabbitProducer init(){
        RabbitProducer rabbitProducer = new RabbitProducer();
        rabbitProducer.setId("222");
        rabbitProducer.setName("this is producer");
        return rabbitProducer;
    }
}
